package DAO;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import com.zues.store.bean.User;
import com.zues.store.mapper.UserMapper;
public class UserDAOTest1 extends BaseJunitTest{

	@Autowired
	private UserMapper userMapper;

	@Test
	public void TestInsertUser() {
		User user = new User();
		user.setUsername("zhangsan");
		user.setPassword("123456");
		user.setPhone("13456782432");
		user.setEmail("879@qq.com");
		Integer flag = userMapper.insertUser(user);
		if (flag != 0) {
			System.out.println("true");
		} else {
			System.out.println("false");
		}

	}
}
